package com.zkx.blogweb.mapper.service;

import com.github.pagehelper.PageInfo;
import com.zkx.blogweb.entity.IdArticle;
import com.zkx.blogweb.entity.User;

import java.util.HashMap;
import java.util.List;

/**
 * @author zkx
 */
public interface IdArticleService {

    IdArticle getArticleByBlogId(Integer blogId);

    PageInfo<IdArticle> getPageInfoByBlogId(Integer blogId,Integer startPageNum,Integer pageSize);

    List<IdArticle> getListByBlogId(Integer blogId,Integer start,Integer pageSize);

    PageInfo<IdArticle> getPageInfo(Integer startPageNum,Integer pageSize);

    List<IdArticle> getPageIdArticleList(Integer startPageNum,Integer pageSize);

    HashMap<String,String> getAllBlogUserName();

    int allArticles();

    Integer selectBlogsById(Integer userId);

    Integer selectStarsById(Integer userId);

    void deleteBlogById(int blogId);

    void deleteBlogByUserId(Integer userId);

    List<IdArticle> getRankTop();

    void insertIdArtilce(IdArticle idArticle);

    IdArticle selectUserByBlogId(Integer searchBlogId);
}
